import http from '@/utils/http'

// 健康百科数据获取
export const encyclopediaApi = () => {
	return http({
		url: `/health`,
		// method: 'get'
	})
}
// 健康百科文章详情
export const articleDetailApi=(id)=>{
	return http({
		url:'/health/query',
		params:{id}
	})
}
// 病历所有记录
export const applicationRecordApi=({accountId,startDate,endDate})=>{
	return http({
		url:`/medicalrecod-mailing/list/${accountId}/${startDate}/${endDate}`
		// method:'get',
	})
}
// 选择就诊人
export const selPersonApi=(userId)=>{
	return http({
		url:`/getbyUserId/${userId}`,
		params:{userId}
	})
}
// 获取今天的日期和星期
export const weekApi=()=>{
	return http({
		url:`/hs/week7`,
		
	})
}
// 确认预约信息
export const sureApi=(id,time)=>{
	return http({
		url:'/hs/detail',
		params:{id,time}
	})
	
	
}
// 获取时间点
export const dayApi= async(day)=>{
	return await http({
		url:'/hs/timeAndNum',
		params:{day}
	})
}
// 获取病历寄送详情
export const detailApi=(id)=>{
	return http({
		url:`/medicalrecod-mailing/list/${id}`,
	})
}
// 添加病历寄送
export const addSendApi=(medicalRecordMailing)=>{
	return http({
		url:'/medicalrecod-mailing/add',
		method:'post',
		data:medicalRecordMailing
	})
}